home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_jfs < prev    next >
Text File  |  2009-10-28  |  489b  |  28 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. jfs=no
  6.  
  7. for dev in $DEVICES/*; do
  8.     [ -d "$dev" ] || continue
  9.     cd $dev
  10.     partitions=
  11.     open_dialog PARTITIONS
  12.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  13.         [ "$fs" != free ] || continue
  14.         [ -f $id/method -a -f $id/acting_filesystem ] || continue
  15.         filesystem=$(cat $id/acting_filesystem)
  16.         case $filesystem in
  17.             jfs)
  18.             jfs=yes
  19.             ;;
  20.         esac
  21.     done
  22.     close_dialog
  23. done
  24.  
  25. if [ "$jfs" = yes ]; then
  26.     apt-install jfsutils || true
  27. fi
  28.